<link href="//cdn.bootcss.com/weui/1.0.2/style/weui.css" rel="stylesheet">
<style>
    /*弹框*/
    .add_name {
        border: 1px solid #999999;
        height: 30px;
        font-size: 14px;
        /* border: 0; */
    }
    html, body {
        background-color: #ffffff;
        height: 100%;
        font-family: "Microsoft YaHei",微软雅黑,"Helvetica Neue", Helvetica, Arial, sans-serif;
    }
    .weui_cells_title {
        margin-top: .77em;
        margin-bottom: .3em;
        padding-left: 10px;
        padding-right: 15px;
        color: #888;
        font-size: 14px;
        /*border: 1px solid;*/
        text-align: left;
    }
    .weui_textarea {
        display: block;
        border: 0;
        resize: none;
        width: 100%;
        color: inherit;
        font-size: 0.78em;
        line-height: inherit;
        outline: 0;
        text-align: left;
        text-indent: 2em;
    }

</style>
<!--弹框-->
<div id="dialogs">
    <!--BEGIN dialog1-->
    <div class="js_dialog" id="iosDialog1" style="display: none;">
        <div class="weui-mask"></div>
        <div class="weui-dialog">
            <div class="weui-dialog__hd"><strong class="weui-dialog__title">添加店组</strong></div>
            <div class="weui-dialog__bd">
                店组名：<input type="text" placeholder="请输入店组名" class="add_name">
                <div class="weui_cells_title">说&nbsp;&nbsp;&nbsp;&nbsp;明：</div>
                <div class="weui_cells weui_cells_form">
                    <div class="weui_cell">
                        <div class="weui_cell_bd weui_cell_primary">
                            <div class="weui_textarea" placeholder="请输入评论" rows="3">
                                对店组的说明对店组的说明对店组的说明对店组的说明对店组的说明对店组的说明。
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <div class="weui-dialog__ft">
                <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_default">取消</a>
                <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary">确定</a>
            </div>
        </div>
    </div>
    <!--END dialog1-->
</div>
<script src="<%= global.config.cdn %>/jquery/2.2.4/jquery.<%= global.config.mode %>js"></script>
<script>
    //tk
    var $iosDialog1=$('#iosDialog1');//弹框
    $('.dz_add').click(function(){
        $iosDialog1.fadeIn(200);
    })
    $('.weui-dialog__btn_default').click(function () {
        $(this).parents('.js_dialog').fadeOut(200);
    })
    $('.weui-dialog__btn_primary').click(function(){
        var add_name=$('.add_name').val();
        if(add_name!=''){
            $(this).parents('.js_dialog').fadeOut(200);
//            var a="<a href='javascript:;'class='weui_grid js_grid' data-id='toast'><div class='img_namek' onclick='han()'><div class='weui_grid_icon'><img src='/photo/logo.png'></div><p class='weui_grid_label add_newname'>"+add_name+"</p></div></a>";
            var a="<div class='weui_media_box weui_media_small_appmsg'><div class='weui_cells weui_cells_access'><a class='weui_cell' href='javascript:;'><div class='weui_cell_hd'><img src='/photo/a15.png'></div><div class='weui_cell_bd weui_cell_primary'><p class='addnew_name'>"+add_name+"</p></div><span class='weui_cell_ft' onclick='han(this)'>003454</span></a></div></div>";
            $('.dianzuk').append(a);
        }
        $('.add_name').val('');
    });
</script>